package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.OrderDetail;

@Repository
public interface OrderDetailDao{
	
	/**
	 * 添加订单
	 * 
	 * @param OrderDetail
	 * @return Integer
	 * 
	 */
	public int insert(OrderDetail OrderDetail);
	
	public int update(OrderDetail OrderDetail);

	/**
	 * 删除订单
	 * 
	 * @param OrderDetailId
	 * @return Integer
	 * 
	 */
	public int deleteOrderDetail(@Param("id") int id);

	/**
	 * 
	 * @param id
	 * @return
	 */
	public OrderDetail selectById(@Param("id") int id);

	/**
	 * 获取所有订单
	 * 
	 * @param offset
	 * @param rows
	 * @return List<OrderDetail>
	 * 
	 */
	public List<OrderDetail> getAllListByOrderId(@Param("orderId")int orderId);
}
